import  threading
def fangfa1():
    print("方法1")
def fangfa2():
    print("方法2")
    t1=threading.Thread(target=fangfa1())
    t2=threading.Thread(target=fangfa2())
    t1.start()
    t2.start()

    t1.join()
    t2.join()